package queue_item

import (
	"github.com/zeromicro/go-zero/core/stores/cache"
	"github.com/zeromicro/go-zero/core/stores/sqlx"
)

var _ QueueItemModel = (*customQueueItemModel)(nil)

type (
	// QueueItemModel is an interface to be customized, add more methods here,
	// and implement the added methods in customQueueItemModel.
	QueueItemModel interface {
		queueItemModel
	}

	customQueueItemModel struct {
		*defaultQueueItemModel
	}
)

// NewQueueItemModel returns a model for the database table.
func NewQueueItemModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) QueueItemModel {
	return &customQueueItemModel{
		defaultQueueItemModel: newQueueItemModel(conn, c, opts...),
	}
}
